<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<script type="text/javascript" src="<c:url value='/js/easydialog-v2.0/easydialog.js'/>"></script>
<link rel="stylesheet" type="text/css" href="<c:url value='/css/uploadImg.css'/>">
<script type="text/javascript">
  	$(document).ready(function(){
  	//	$('#mce_68').hide();
  		$("#right04 .agen_right_title a").click(function(){
  			
  			picEvent.flag = 0;
  			picEvent.popInit();
              
  		    picEvent.init();
              
  		});
  		
	});
</script>


 <div id="right04" style="display:" class="agen_right">
 <input type="hidden" name="imgId" id="imgId">
        <div class="agen_right_title" > 相册管理 </div>
        <div class="agen_right_title" > </div>
        <div class="agen_right_title" style="height:50px;"> <a href="#"> <img src="../images/sczp.jpg"/> </a> </div>
        <div class="agen_right04">
            <div class="agen_right_pic">
	            <c:forEach var="img"  begin="0" end="3" items="${imgList.showData}" varStatus="status"> 
                    <c:if test="${status.index%4 != 0}">
                        <div class="agen_right_pic00"></div>
                    </c:if>
	                <div class="agen_right_pic01"> <a href="#"><img src="${img.imgKey}"/></a>
	                    <p style="height:10px;">&nbsp;</p>
	                        <a href="#"> <p style="width:151px;height:20px;text-align:center;">${img.imgName}</p></a> 
	                    <p style="width:151px;height:20px;text-align:center;"> <a  href="#" onclick="picEvent.editEvent('${img.id}')" style="color:#578429">编辑</a> &nbsp;&nbsp; <a href="#" onClick="picEvent.delEvent('${img.id}')" style="color:#578429">删除</a> </p>
	                    <br/>
		            </div>
	            </c:forEach>
            </div>
            
            <div class="agen_right_pic" style="height:40px;"></div>
            
                <div class="agen_right_pic">
                <c:forEach var="img"  begin="4" end="7" items="${imgList.showData}" varStatus="status"> 
                    <c:if test="${status.index%4 != 0}">
                        <div class="agen_right_pic00"></div>
                    </c:if>
                    <div class="agen_right_pic01"> <a href="#"><img src="${img.imgKey}"/></a>
                        <p style="height:10px;">&nbsp;</p>
                            <a href="#"> <p style="width:151px;height:20px;text-align:center;">${img.imgName}</p></a> 
                        <p style="width:151px;height:20px;text-align:center;"> <a  href="#" onclick="picEvent.editEvent('${img.id}')" style="color:#578429">编辑</a> &nbsp;&nbsp; <a href="#" onClick="picEvent.delEvent('${img.id}')" style="color:#578429">删除</a> </p>
                        <br/>
                    </div>
                </c:forEach>
            </div>
            
             <%@ include file="page.jsp"%>
         </div>
	</div>
	
	<div id="mce_68" class="mce-container mce-panel mce-floatpanel mce-window mce-in" hidefocus="1" tabindex="-1"  style="display:none important!;border-width: 1px;">
    <div id="mce_68-head" class="mce-window-head">
        <div class="mce-title">上传图片</div>
        <button type="button" class="mce-close" aria-hidden="true"  onClick="picEvent.overloadClose();">×</button>
        <div id="mce_68-dragh" class="mce-dragh"></div>
    </div>
    <div id="mce_68-body" class="mce-container-body mce-abs-layout" style="width: 298px; height: 128px;">
        <div id="mce_68-absend" class="mce-abs-end"></div>
        <div id="mce_69" class="mce-container mce-form mce-first mce-last mce-abs-layout-item" style="position:relative;left: 0px; top: 0px; width: 298px; height: 72px;">
            <div id="mce_69-body" class="mce-container-body mce-abs-layout" style="width: 298px; height: 72px;">
                <div id="mce_69-absend" class="mce-abs-end"></div>
                <div id="mce_70" class="mce-container mce-first mce-last mce-abs-layout-item" style="left: 20px; top: 20px; width: 258px; height: 32px;">
                    <div id="mce_70-body" class="mce-container-body mce-undefined" style="width: 258px; height: 32px;">
                        <div class="tinymceupload">
                            <form id="importfile" method="post" enctype="multipart/form-data" encoding="multipart/form-data" target="iframbody">
                                <input type="hidden" name="selid" value="661954">
                                <input type="hidden" name="source" value="description">
                                <input type="hidden" name="type" value="huge">
                                <input type="hidden" name="imgId" value="huge">
                                <input type="hidden" name="imgKey" id="imgKey" value="">
                                <input type="file" name="uploadImg" value="上传" id="uploadfile" accept="image/*">
                                
                            </form>
                        
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div style="position:relative;flaot:left;width:99%;height:50px;text-indent:1em;"> 描述：
        <textarea name="imgName" id="imgName" style="width:195px;border:1px solid #DDD;height:40px;overflow:hidden;"> </textarea>
        </div>
        
    </div>
    <div id="mce_71" class="mce-container mce-panel mce-foot" hidefocus="1" tabindex="-1" style="border-width: 1px 0px 0px; left: 0px; top: 0px; width: 298px; height: 50px;">
        <div id="mce_71-body" class="mce-container-body mce-abs-layout" style="width: 298px; height: 50px;">
            <div id="mce_71-absend" class="mce-abs-end"></div>
            <div id="mce_72" class="mce-widget mce-btn mce-first mce-abs-layout-item" tabindex="-1" role="button" style="left: 157px; top: 10px; width: 76px; height: 28px;">
                <button role="presentation" type="button" tabindex="-1" onclick="picEvent.clickEvent()" style="height: 100%; width: 100%;">上传图片</button>
            </div>
            <div id="mce_73" class="mce-widget mce-btn mce-last mce-abs-layout-item" tabindex="-1" role="button" style="left: 238px; top: 10px; width: 48px; height: 28px;">
                <button role="presentation" type="button" tabindex="-1" style="height: 100%; width: 100%;" onClick="picEvent.overloadClose();F;">关闭</button>
            </div>
        </div>
    </div>
</div>